import wxRequest from '../utils/wxRequest'
import appConfig from '../utils/appConfig'

wxRequest.baseUrl = `${appConfig.HTTP_BAST_URL}/api/public/v1/`
const getHomeSwiper = params => {
  return wxRequest('home/swiperdata', params).then(res => res.data)
}
const getHomeNav = params => {
  return wxRequest('home/catitems', params).then(res => res.data)
}
export default {
  getHomeSwiper,
  getHomeNav
}
